package facade;

/**
 * 外观类
 */
public class Facade {
    SubSystemOne one;
    SubSystemTwo two;
    SubSystemThree three;
    SubSystemFour four;

    public Facade (){
        one = new SubSystemOne();
        two = new SubSystemTwo();
        three = new SubSystemThree();
        four = new SubSystemFour();
    }

    public void methodA(){
        System.out.println("-----方法组A()-----");
        one.mehtodOne();
        two.mehtodTwo();
        four.mehtodFour();
    }

    public void methodB(){
        System.out.println("-----方法组B()-----");
        two.mehtodTwo();
        three.mehtodThree();
    }



}
